Make gtk_tree_view_real_set_cursor() handle non-existing paths
authorKristian Rietveld <kris@gtk.org>
Fri, 28 Aug 2009 07:53:49 +0000 (09:53 +0200)
committerKristian Rietveld <kris@gtk.org>
Fri, 28 Aug 2009 09:04:54 +0000 (11:04 +0200)
commit44469e468472dc6e0c8d7f17e13c7f3d2ce94a0d
tree0d4858e01bc7a0a9da852239a73630a37ed0e098
parent8d936d3cde8b0ce53ba4544a3d810f3ad352c8c1
Make gtk_tree_view_real_set_cursor() handle non-existing paths

Such paths (eg. a child node that is collapsed) should be ignored.  This
is fixed by checking the return value of _gtk_tree_view_find_node(),
which returns a partial return value (the parent node) when it returns
TRUE.  Also added a unit test.
gtk/gtktreeview.c
gtk/tests/treeview.c